package bank.driver.servlet;

import java.io.IOException;
import java.net.UnknownHostException;

import bank.Bank;
import bank.BankDriver;
import bank.driver.sockets.SocketBank;
import bank.driver.sockets.SocketMessenger;

public class ProxyDriver implements BankDriver {

	private Bank bank;

	@Override
	public void connect(String[] args) throws NumberFormatException, UnknownHostException, IOException {
		this.bank = new BankProxy();
	}

	@Override
	public void disconnect() {
		this.bank = null;
	}

	@Override
	public Bank getBank() {
		return this.bank;
	}
}
